﻿using Strategy.Strategys;
using System;
using System.Collections.Generic;
using System.Text;

namespace Strategy
{
    /// <summary>
    /// 上下文
    /// </summary>
    public class Context
    {

        public BaseStrategy _baseStrategy { get; set; }

        public Context(BaseStrategy baseStrategy)
        {
            _baseStrategy = baseStrategy;
        }

        /// <summary>
        /// 执行策略
        /// </summary>
        public void Excute()
        {
            _baseStrategy.Excute();
        }

    }
}
